package edu.scut.luluteam.contextlib.bean;

import edu.scut.luluteam.contextlib.constant.AppHolder;
import edu.scut.luluteam.contextlib.utils.SystemUtils;

/**
 * @author Guan
 * @date Created on 2018/11/21
 */
public class ContextInfo extends BaseInfo {

    public String deviceId = SystemUtils.getInstance(AppHolder.appContext).getUniqueDeviceID();
    public String appId = AppHolder.APP_ID;

    public String itemId;
    public int rating;
    public long duration;
    public int wordCount;


    public long timestamp;

    //app版本信息
    public String versionCode;
    public String versionName;

    public DeviceInfo deviceInfo;

    public LocationInfo locationInfo;


//==========================================


    public static class DeviceInfo {
        public String brand;
        public String display;
        public String model;
        public String versionRelease;
        /**
         * 制造商
         */
        public String manufacturer;
        /**
         * sim卡提供商
         */
        public String simProvider;
        public int SDKInt;


    }

    public static class LocationInfo {
        /**
         * 纬度
         */
        public double latitude;
        /**
         * 经度
         */
        public double longitude;


    }

}
